<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    /*
    赋值运算符：对变量进行赋值的运算符
        += -= *= /=  %=
    * */
    let num1=1
    console.log(num1+=1) // 等价于 num1=num1+1
    let num2=2
    console.log(num2-=1)// 等价于 num2=num2-1
    let num3=3
    console.log(num3*=1)// 等价于 num3=num3*1
    let num4=4
    console.log(num4/=1)// 等价于 num4=num4/1
    let num5=5
    console.log(num5%=1)// 等价于 num5=num5%1

</script>
</body>
</html>